package com.atwulidun.template12;

public class TemplateDemo {
    public static void main(String[] args) {
        // 制作红豆豆浆
        System.out.println("制作红豆豆浆：");
        SoyaMilk1 redBeanSoyaMilk = new RedBeanSoyaMilk();
        redBeanSoyaMilk.make();
        // 制作花生豆浆
        System.out.println("制作花生豆浆：");
        SoyaMilk1 peanutSoyaMilk = new PeanutSoyaMilk();
        peanutSoyaMilk.make();
        // 制作纯黄豆豆浆
        System.out.println("制作纯黄豆豆浆：");
        SoyaMilk1 pureSoyaMilk = new PureSoyaMilk();
        pureSoyaMilk.make();

//        // 制作红豆豆浆
//        System.out.println("制作红豆豆浆：");
//        SoyaMilk2 redBeanSoyaMilk = new RedBeanSoyaMilk();
//        redBeanSoyaMilk.make();
//        // 制作花生豆浆
//        System.out.println("制作花生豆浆：");
//        SoyaMilk2 peanutSoyaMilk = new PeanutSoyaMilk();
//        peanutSoyaMilk.make();
//        // 制作纯黄豆豆浆
//        System.out.println("制作纯黄豆豆浆：");
//        SoyaMilk2 pureSoyaMilk = new PureSoyaMilk();
//        pureSoyaMilk.make();
    }
}
